#ifndef DOODLE_SPRITE_H
#define DOODLE_SPRITE_H

#include "sprite.h"

class DoodleSprite: public Sprite {
public:
	DoodleSprite(const Vector2f& pos, const Vector2f& vel, Frame* const f, const Frame* left) :
			Sprite(pos, vel, f),
			leftFrame(left),
			rightFrame(f),
			highestPos(pos)
			{
	}
	DoodleSprite(const Sprite &s) :
			Sprite(s) {
	}
	virtual void jump();
	virtual void moveLeft();
	virtual void moveRight();
	virtual void update(unsigned);
	void faceLeft() {frame = leftFrame;}
	void faceRight() {frame = rightFrame;}
	void setLeftFrame(const Frame* left) {leftFrame = left;}
	void setRightFrame(const Frame* right) {rightFrame = right;}
	Vector2f getHighestPosition() const {return highestPos;}

private:
	const Frame* leftFrame;
	const Frame* rightFrame;
	Vector2f highestPos;

};


#endif
